
#ifndef _MEMBER_BMESSAGEDIALOG_H_
#define _MEMBER_BMESSAGEDIALOG_H_

#include <BMap>
#include <BIcon>
#include <BButton>
#include <BHBoxLayout>
#include <BMessageBox>
#include "ITextBlock.h"

namespace BWE
{
	class member_BMessageBox : public BObject
	{
		friend class BMessageBox;
	public:
		member_BMessageBox(BMessageBox* messageBox);
		~member_BMessageBox();

		const char* buttonText(Button button);

		void freshRects();

		void slotButtonClicked(BObject* object);

		BMessageBox*		boss;
		ITextBlock			block;
		bool				lineWrap;
		bool				dirty;
		Align				textAlign;
		BSize				textSize;
		StyleRole			iconRole;
		BHBoxLayout*		buttonLayout;
		Button				defaultButton;
		BButtonHolderArray	buttons;
	};
}

#endif